package com.example.justbuy.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;


/***
 * 商品信息表
 * @author lxp
 * */
public class Goods {
    /*商品编号*/
    private  int id;

    /*添加时间*/
    private Date addTime;

    /*商品编码*/
    private String goodsCode;

    /*商品名称*/
    private String goodsName;

    /*商品类型*/
    private int goodsType;

    /*商品单价*/
    private  double price;

    /*商品描述*/
    private  String goodsDsc;

    /*商品图片地址*/
    private int imageid;

    /*商品所属商铺地址*/
    private int storeId;

    /*用户ID*/
    private int userId;

    /*商品状态*/
    private  String  goodsState;

    /*商品库存*/
    private  int  repertory;

    /*商品规格*/
    private  String model;

    /*评价总数*/
    private int sumnum;

    /*好评总数*/
    private int goodnum;

    public int getSumnum() {
        return sumnum;
    }

    public void setSumnum(int sumnum) {
        this.sumnum = sumnum;
    }

    public int getGoodnum() {
        return goodnum;
    }

    public void setGoodnum(int goodnum) {
        this.goodnum = goodnum;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }


    /*商品图片类*/
    private Image img;

    private List<Image> images;

    public List<Image> getImages() {
        return images;
    }

    public void setImages(List<Image> images) {
        this.images = images;
    }

    public Image getImg() {
        return img;
    }

    public void setImg(Image img) {
        this.img = img;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public int getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(int goodsType) {
        this.goodsType = goodsType;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getGoodsDsc() {
        return goodsDsc;
    }

    public void setGoodsDsc(String goodsDsc) {
        this.goodsDsc = goodsDsc;
    }

    public int getImageid() {
        return imageid;
    }

    public void setImageid(int imageid) {
        this.imageid = imageid;
    }

    public int getStoreId() {
        return storeId;
    }

    public void setStoreId(int storeId) {
        this.storeId = storeId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getGoodsState() {
        return goodsState;
    }

    public void setGoodsState(String goodsState) {
        this.goodsState = goodsState;
    }

    public int getRepertory() {
        return repertory;
    }

    public void setRepertory(int repertory) {
        this.repertory = repertory;
    }



    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }



}
